import request from '@/utils/request'

// 查询借还日志列表
export function listBrlog(query) {
  return request({
    url: '/assets/brlog/list',
    method: 'get',
    params: query
  })
}

// 查询借还日志详细
export function getBrlog(borrowLogId) {
  return request({
    url: '/assets/brlog/' + borrowLogId,
    method: 'get'
  })
}

// 新增借还日志
export function addBrlog(data) {
  return request({
    url: '/assets/brlog',
    method: 'post',
    data: data
  })
}

// 修改借还日志
export function updateBrlog(data) {
  return request({
    url: '/assets/brlog',
    method: 'put',
    data: data
  })
}

// 删除借还日志
export function delBrlog(borrowLogId) {
  return request({
    url: '/assets/brlog/' + borrowLogId,
    method: 'delete'
  })
}
